<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../../static/layer/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../../../static/ucss/hydropower/water_electricity_edit.css">
    <link rel="stylesheet" href="../../../static/ucss/contract/contract.css"/>
</head>
<body>
<form class="layui-form" action="">
    <div class="layui-form-item panel-type">
        <label class="layui-form-label">电表类型：</label>
        <div class="layui-input-block">
            <input type="radio" name="codeStype" value="总" lay-filter="radio" title="总表" checked>
            <input type="radio" name="codeStype" value="分" lay-filter="radio" title="分表">
        </div>
    </div>
    <div class="layui-form-item panel-parent">
        <label class="layui-form-label">父级电表：</label>
        <div class="layui-input-block tree">
            <input type="text" id="pname" name="pname" autocomplete="off"
                   class="layui-input" placeholder="请选择父级电表" readonly onclick="initTree()">
            <i class="layui-icon icon-delete" onclick="clearParentInfo()">&#x1006;</i>
        </div>
    </div>
    <!--<div class="layui-form-item">
        <label class="layui-form-label">父级电表：</label>
        <div class="layui-input-block tree">
            <ul id="hydropower"></ul>
            <input type="text" readonly id="pname" name="pname" style="width: 297px;" placeholder="请选择父级电表" class="layui-input" value="">
            <i class="layui-icon icon-delete" onclick="clearParentInfo()">&#x1006;</i>
        </div>
    </div>-->
    <div class="select-prefix">
        <label class="layui-form-label">项目类型：</label>
        <div class="layui-input-inline">
            <select id="type" lay-filter="type">
            </select>
        </div>
    </div>
    <div class="select-suffix">
        <label class="layui-form-label">项目名称：</label>
        <div class="layui-input-inline">
            <select id="project" lay-filter="project">
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="panel-code-suffix">
            <label class="layui-form-label">编号后缀：</label>
            <div class="layui-input-block">
                <input type="text" name="codeSuffix" autocomplete="off"
                       class="layui-input" placeholder="请输入编号后四位" style="width: 310px" onkeyup="getSuffix(this)" onblur="getSuffix(this)">
            </div>
        </div>
        <div class="panel-code">
            <label class="layui-form-label">电表编号：</label>
            <div class="layui-input-block">
                <input type="text" name="code" autocomplete="off"
                       class="layui-input" readonly style="width: 310px">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label panel-card">插卡式：</label>
        <div class="layui-input-block">
            <input type="radio" name="isCard" value="1" lay-filter="radio" title="是">
            <input type="radio" name="isCard" value="0" lay-filter="radio" title="否" checked>
        </div>
    </div>
    <div class="layui-form-item panel-rates">
        <label class="layui-form-label">电表倍率：</label>
        <div class="layui-input-block">
            <input type="text" name="rates" placeholder="请输入电表倍率" autocomplete="off"
                   class="layui-input" value="1">
        </div>
    </div>
    <div class="layui-form-item panel-remarks">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-block">
            <input type="text" name="remarks" placeholder="请输入备注信息" autocomplete="off"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="electricity">保存</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="../../../static/js/common/queryUtils.js"></script>
<script type="text/javascript" src="../../../static/layer/layui.js"></script>
<script type="text/javascript" src="../../../static/ujs/hydropower/water_electricity_edit.js"></script>
</body>
</html>